package com.longcai.piaojia.dialog;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.longcai.piaojia.R;

/**
 * Created by Administrator on 2016/12/19.
 */
public class NoCancleDialog extends BaseDialog {

    public NoCancleDialog(Context context, String message) {
        super(context);

        setContentView(R.layout.dialog_no_cancle);

        ((TextView) findViewById(R.id.alert_message)).setText(message);

        View.OnClickListener listener = new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                switch (v.getId()) {

                    case R.id.alert_confirm:

                        dismiss();

                        break;
                }

                dismiss();
            }
        };

        findViewById(R.id.alert_confirm).setOnClickListener(listener);
    }
}
